package com.gdth.widget.wheel.adapter;

import android.content.Context;

public class AdapterWheel extends AbstractWheelTextAdapter {

    private IWheelAdapter adapter;
    
    public AdapterWheel(Context context, IWheelAdapter adapter) {
        super(context);
        
        this.adapter = adapter;
    }

    public IWheelAdapter getAdapter() {
        return adapter;
    }
    
    @Override
    public int getItemsCount() {
        return adapter.getItemsCount();
    }

    @Override
    protected CharSequence getItemText(int index) {
        return adapter.getItem(index);
    }

}
